<!DOCTYPE html>
<html>
<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>编辑部门</title>

    <link href="__PUBLIC__/home/css/bootstrap.min.css" rel="stylesheet">
    <link href="__PUBLIC__/home/css/alert.css" rel="stylesheet">

    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>

</head>
<body>
<div class="row">
    <div class="col-md-12">
        <ol class="breadcrumb">
            <li class="active">
                <i class="fa fa-fw fa-edit"></i>
                编辑部门
            </li>
        </ol>
    </div>
</div>
<div class="row">
    <ul class="nav nav-tabs" role="tablist">
        <li role="presentation" >
            <a href="{:U('Department/index')}" >部门列表</a>
        </li>
        <li role="presentation" class="active">
            <a href="#message" aria-controls="home" role="tab" data-toggle="tab">编辑部门</a>
        </li>
    </ul>
    <div class="tab-content col-xs-12">
        <div role="tabpanel" class="tab-pane active" id="message">
            <div class="row">
                <div class="col-sm-10">
                    <form id="zyn-form-add" class="form-horizontal" action="{:U('Department/edit')}" method="post">
                        <input type="hidden" name="department_id" value="{$info.department_id}">
                        <div class="form-group">
                            <label for="lc-input-user_name" class="control-label col-sm-2">部门名称</label>
                            <div class="col-sm-3">
                                <input id="lc-input-user_name" class="form-control" required type="text" name="department_name" value="{$info.department_name}"/>
                            </div>
                        </div>
                        <div class="form-group" id="parent">
                            <label class="control-label col-sm-2">选择店铺</label>
                            <div class="col-sm-3">
                                <select class="p-no-margin form-control" name="store_id" style="width: auto;">
                                    <option value="0">请选择店铺</option>
                                    <volist name="list" id="re">
                                        <option value="{$re.store_id}" <if condition="$info['store_id'] eq $re['store_id']">selected</if>>{$re.store_name}</option>
                                    </volist>
                                </select>
                            </div>
                        </div>
                        <div class="col-xs-10 col-xs-offset-2">
                            <button class="btn btn-primary" id="lc-btn-save" type="submit">提交保存</button>
                            <a class="btn btn-primary" href="javascript:history.back(-1)">返回上一页</a>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<include file = "Public/html/footer.html" />
<script>
    $("#lc-btn-return").click(function () {
        location.href = "{:U('Store/index')}";
    })
</script>
</body>
</html>
